//
//  GlobalUnit.h
//  EastMarket
//
//  Created by 李鹏程 on 16/10/12.
//  Copyright © 2016年 guoguo. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Header.h"

#define globalManager [GlobalUnit shareManager]

#define NotificationLoginSccess @"NotificationLoginSccess"

#define NotificationUpdateInsureInfo @"NotificationUpdateInsureInfo"

#define NotificationWXPayComplete @"WXPayComplete"
#define NotificationAliPayComplete @"AliPayComplete"
#define NotificationBalancePayComplete @"BalancePayComplete"
#define NotificationReloadData @"NotificationReloadData"

@interface GlobalUnit : NSObject

+ (GlobalUnit *) shareManager;

+ (BOOL) isBlankString:(NSString *)string;

+(NSString *) jsonStringWithString:(NSString *) string;

+(NSInteger)getIntValue:(id)object;

+(NSInteger)getIntValue:(id)object withDefault:(NSInteger)defaultvalue;

+(NSString *)getStringValue:(id)object;

+(NSString *)getStringValue:(id)object withDefault:(NSString*)defaultvalue;

+(void)showAlertHint:(NSString*)title message:(NSString*)message;

+(void)showMessage:(NSString *)message;

+(void)showPopHint:(NSString *)contentMessage targetView:(UIView*)popView showInView:(UIView*)showView;

+ (BOOL) isMobile:(NSString *)mobileNumbel;

+(NSString *) stringDeleteString:(NSString *)str;

+(NSString* )getDateFormatterByMillisecond:(NSString* )millisecond;

@property (nonatomic, strong) NSArray *cateListArr;
@property (nonatomic) BOOL isLogined;
@property (nonatomic) BOOL isAllProduct;
@property (nonatomic) BOOL isHidenSearch;
@property (nonatomic) BOOL isHihenLogo;
@property (nonatomic, copy) NSString *tabBarItems;

@property (nonatomic, copy) NSString *strKeyName;
//@property (nonatomic, copy) NSString *strProductCatePath;
//@property (nonatomic, copy) NSString *strOrder;


/**
 NSString *strKeyName;
 NSString *strProductCatePath;
 NSString *strOrder;
 */
@end
